From: Daniel Boles Date: Sun, 24 Sep 2017 21:20:34 +0000 (+0100) Subject: Button: Annotate set_image() argument as nullable X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~153 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=701f82d1c3192fde4a18ee7cd686837ddd798c7b;p=gtk%2B3.0.git Button: Annotate set_image() argument as nullable Passing NULL is valid and results in the image child being unset/removed --- diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index b39d55b408..90e1a5d34a 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -2543,7 +2543,7 @@ gtk_button_grab_notify (GtkWidget *widget, /** * gtk_button_set_image: * @button: a #GtkButton - * @image: a widget to set as the image for the button + * @image: (nullable): a widget to set as the image for the button, or %NULL to unset * * Set the image of @button to the given widget. The image will be * displayed if the label text is %NULL or if